import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
import 'dayjs/locale/zh-cn'
import locale from 'element-plus/lib/locale/lang/zh-cn'

import '@/assets/style/element.css'
import '@/assets/style/jaguar.css'

window.vue = createApp(App)
window.vue
  .use(ElementPlus, { locale })
  .use(router)
  .mount('#app')

import Buttons from '@/components/Button'
for (let key in Buttons) {
  window.vue.component(key, Buttons[key])
}

import SearchInput from '@/components/SearchForm/SearchInput'
window.vue.component('search-input', SearchInput)

import TablePage from '@/components/TablePage'
window.vue.component('table-page', TablePage)
